package com.jsfcompref.solutech.model;

import com.eCommerce.corecontract.dto.ComposantDTO;

public class ComposantPanier {

	private ComposantDTO composant;
	private Integer quantite;
	//
	

	public ComposantPanier(ComposantDTO composant, Integer quantite) {
		super();
		this.composant = composant;
		this.quantite = quantite;
	}

	public Double getSubtotal(){
		return  composant.getPrix() * quantite;
	}

	public ComposantDTO getComposant() {
		return composant;
	}

	public void setComposant(ComposantDTO composant) {
		this.composant = composant;
	}

	public Integer getQuantite() {
		return quantite;
	}

	public void setQuantite(Integer quantite) {
		this.quantite = quantite;
	}
	
	
}
